#! /bin/sh
su - work -c "pm2 stop eg_push_server_production"
su - work -c "pm2 stop eg_server_production"
/home/work/mongodb/mongodb-linux-x86_64-3.4.6/bin/mongo --nodb create_collections.js
su - work -c "pm2 start eg_push_server_production"
su - work -c "pm2 start eg_server_production"
